import React from "react"
import Pages from "./pages"
// import Playlist from "./pages/My/playlist"
import { BrowserRouter as Router, Route, Link, NavLink, Redirect, Switch, withRouter } from 'react-router-dom'
import Meirituijian from "../src/pages/Find/每日推荐/每日推荐/index"
import Gedan from "../src/pages/Find/每日推荐/歌单/index"
import Paihangbang from "../src/pages/Find/每日推荐/排行榜/index"
import Diantai from "../src/pages/Find/每日推荐/电台/index"
// import Zhibo from "../src/pages/Find/每日推荐/直播/index"
import Diantaifenlei from "../src/pages/Find/每日推荐/电台/电台分类/index"
import Diantaipaihang from "../src/pages/Find/每日推荐/电台/电台排行/index"
import Fufeijingpin from "../src/pages/Find/每日推荐/电台/付费精品/index"
import Chuangzuofanchang from "../src/pages/Find/每日推荐/电台/电台分类/创建翻唱/index"
import Gengduoxindie from "./pages/Find/新歌/index"
import Playlist from "./pages/My/playlist"
import Findplaylist from "./pages/Find/Findplaylist"
import Song from "./pages/My/song"
import Findsong from "./pages/My/Findsong"
import Comment from "./pages/My/comment"
import LatestPlay from "./pages/My/latesetPlay"
import MyFriend from "./pages/My/myFriend"

import Morevideo from "./pages/Search/detail/video/detaill"
import Search from "./pages/Search/index"
import BasicInputExample from "./pages/Login"
import Cell_login from './pages/Login/cell_login';
import Regyzm from './pages/Register/regyzm';
import Updyzm from './pages/Login/updatepwd';
import Upyzm from './pages/Login/upyzm';
import Up from './pages/Login/update';
import PersonalFM from "./pages/My/sirenFM"

import Shouyzm from './pages/Register/shouyzm';
import Password from './pages/Register/password';
import Name from './pages/Register/name';
// import { BrowserRouter as Router, Route, Switch } from "react-router-dom"

class Home extends React.Component {
    render() {
        return (
            // <Playlist></Playlist>
            <Router>
                {/* <Pages></Pages> */}
                {/* <Link to="/gen"></Link> */}
                <Route path="/gen" component={Pages}></Route>
                <Route path="/meirituijian" component={Meirituijian}></Route>
                <Route path="/Gedan" component={Gedan}></Route>
                <Route path="/Paihangbang" component={Paihangbang}></Route>
                <Route path="/Diantai" component={Diantai}></Route>
                {/* <Route path="/Zhibo" component={Zhibo}></Route> */}
                <Route path="/Diantaifenlei" component={Diantaifenlei}></Route>
                <Route path="/Diantaipaihang" component={Diantaipaihang}></Route>
                <Route path="/Fufeijingpin" component={Fufeijingpin}></Route>
                <Route path="/Gengduoxindie" component={Gengduoxindie}></Route>
                <Route path="/Chuangzuofanchang" component={Chuangzuofanchang}></Route>
                <Route path="/playlist" component={Playlist}></Route>
                <Route path="/Findplaylist" component={Findplaylist}></Route>
                <Route path="/song" component={Song}></Route>
                <Route path="/Findsong" component={Findsong}></Route>
                <Route path="/comment" component={Comment}></Route>
                <Route path="/latestplay" component={LatestPlay}></Route>
                <Route path="/myfriend" component={MyFriend}></Route>
                <Route path="/morevideo" component={Morevideo}></Route>
                <Route path="/personfm" component={PersonalFM}></Route>
                <Route path="/Search" component={Search}></Route>

                <Route path="/shouyzm" component={Shouyzm}></Route>
                <Route path="/login" component={Cell_login}></Route>
                <Route path="/register" component={Regyzm}></Route>
                <Route path="/password" component={Password}></Route>
                <Route path="/name" component={Name}></Route>
                <Route path="/update" component={Updyzm}></Route>
                <Route path="/upyzm" component={Upyzm}></Route>
                <Route path="/up" component={Up}></Route>
                <Route path="/BasicInputExample" component={BasicInputExample}></Route>


                <Redirect exact from="/gen" to="/BasicInputExample"></Redirect>
                {/* <Redirect exact from="/gen" to="/gen/Find"></Redirect> */}
            </Router>
        )
    }
}
export default Home